... not to the contained widget, which might not occupy the whole
overlay when an align mode is set.
main_alloc.width = gtk_widget_get_allocated_width (grandchild);
main_alloc.height = gtk_widget_get_allocated_height (grandchild);
}
- else if (GTK_IS_WIDGET (main_widget))
- {
- main_alloc.x = 0;
- main_alloc.y = 0;
- main_alloc.width = gtk_widget_get_allocated_width (main_widget);
- main_alloc.height = gtk_widget_get_allocated_height (main_widget);
- }
else
{
main_alloc.x = 0;